import pytest,time
from selenium import webdriver
from Page import Page
from Page2 import Page2
from Page3 import Page3

@pytest.fixture(scope='class')
def driver():
    driver=webdriver.Edge()
    driver.maximize_window()
    yield driver
    driver.quit()

def test_baidu_01(driver):
    po=Page(driver)
    po.luoji_baidu_login()

def test_baidu_02(driver):
    po=Page2(driver)
    po.search()
    po.baidu()

def test_baidu_03(driver):
    po=Page3(driver)
    po.luoji_baidu_login()
    po.tb()
    po.yl()
    po.mm()
    po.gz()


